﻿
package system.data;

import java.util.*;

import framework.core.*;
/*
	Author    :Jackey
	CreateTime:2008-03-03 10:37:48
*/
public class ProviderBase extends Table 
{
public static final String TABLE_NAME = "T_PROVIDER";

private static final String BACKUP_TABLE_NAME = "T_PROVIDER_BACKUP";

private static final String BACKUP_SEQ_NAME = "S_PROVIDER_BACKUP";


public static final String ID = "ID";

public static final String CODE = "CODE";

public static final String NAME = "NAME";

public static final String FULL_NAME = "FULL_NAME";

public static final String ENG_NAME = "ENG_NAME";

public static final String COM_PROPERTY = "COM_PROPERTY";

public static final String ADDRESS = "ADDRESS";

public static final String ZIP_CODE = "ZIP_CODE";

public static final String MANAGE_PERSON = "MANAGE_PERSON";

public static final String MANAGER_TEL = "MANAGER_TEL";

public static final String LINK_PERSON = "LINK_PERSON";

public static final String LINK_TEL = "LINK_TEL";

public static final String COUNTRY_CODE = "COUNTRY_CODE";

public static final String PROVINCE_CODE = "PROVINCE_CODE";

public static final String DISTRICT_CODE = "DISTRICT_CODE";

public static final String INDUSTRY = "INDUSTRY";

public static final String MAIN_RPODUCT = "MAIN_RPODUCT";

public static final String SCOPE = "SCOPE";

public static final String CREDIT_LEVEL = "CREDIT_LEVEL";

public static final String IS_TRADEFLAT_PROVIDER = "IS_TRADEFLAT_PROVIDER";

public static final String STATUS = "STATUS";

public static final String CREATE_USER_ID = "CREATE_USER_ID";

public static final String CREATE_USER = "CREATE_USER";

public static final String CREATE_TIME = "CREATE_TIME";

public static final String LAST_UPDATE_USER_ID = "LAST_UPDATE_USER_ID";

public static final String LAST_UPDATE_USER = "LAST_UPDATE_USER";

public static final String LAST_UPDATE_TIME = "LAST_UPDATE_TIME";


public static Vector m_fields = null;


private String m_id = ""; //序号

private String m_code = ""; //编码

private String m_name = ""; //名称

private String m_full_name = ""; //全称

private String m_eng_name = ""; //英文名称

private String m_com_property = ""; //公司性质

private String m_address = ""; //经营地址

private String m_zip_code = ""; //邮政编码

private String m_manage_person = ""; //负责人

private String m_manager_tel = ""; //负责人联系电话

private String m_link_person = ""; //联系人

private String m_link_tel = ""; //联系人电话

private String m_country_code = ""; //所属国家

private String m_province_code = ""; //所属省份

private String m_district_code = ""; //所属地区

private String m_industry = ""; //主营行业

private String m_main_rpoduct = ""; //主营产品

private String m_scope = ""; //经营范围

private String m_credit_level = ""; //信誉等级

private String m_is_tradeflat_provider = ""; //是否交易平台的供应商

private String m_status = ""; //是否有效

private String m_create_user_id = ""; //创建人序号

private String m_create_user = ""; //创建人

private String m_create_time = ""; //创建时间

private String m_last_update_user_id = ""; //最后修改人序号

private String m_last_update_user = ""; //最后修改人

private String m_last_update_time = ""; //最后修改时间



	public String getId()
	{
	    return m_id;
	}
	public void  setId(String v)
	{
		if(getId().equals(v)) return ;
		m_id = v ;
		markDirty(ID);
	}



	

	public String getCode()
	{
	    return m_code;
	}
	public void  setCode(String v)
	{
		if(getCode().equals(v)) return ;
		m_code = v ;
		markDirty(CODE);
	}



	

	public String getName()
	{
	    return m_name;
	}
	public void  setName(String v)
	{
		if(getName().equals(v)) return ;
		m_name = v ;
		markDirty(NAME);
	}



	

	public String getFullName()
	{
	    return m_full_name;
	}
	public void  setFullName(String v)
	{
		if(getFullName().equals(v)) return ;
		m_full_name = v ;
		markDirty(FULL_NAME);
	}



	

	public String getEngName()
	{
	    return m_eng_name;
	}
	public void  setEngName(String v)
	{
		if(getEngName().equals(v)) return ;
		m_eng_name = v ;
		markDirty(ENG_NAME);
	}



	

	public String getComProperty()
	{
	    return m_com_property;
	}
	public void  setComProperty(String v)
	{
		if(getComProperty().equals(v)) return ;
		m_com_property = v ;
		markDirty(COM_PROPERTY);
	}



	

	public String getAddress()
	{
	    return m_address;
	}
	public void  setAddress(String v)
	{
		if(getAddress().equals(v)) return ;
		m_address = v ;
		markDirty(ADDRESS);
	}



	

	public String getZipCode()
	{
	    return m_zip_code;
	}
	public void  setZipCode(String v)
	{
		if(getZipCode().equals(v)) return ;
		m_zip_code = v ;
		markDirty(ZIP_CODE);
	}



	

	public String getManagePerson()
	{
	    return m_manage_person;
	}
	public void  setManagePerson(String v)
	{
		if(getManagePerson().equals(v)) return ;
		m_manage_person = v ;
		markDirty(MANAGE_PERSON);
	}



	

	public String getManagerTel()
	{
	    return m_manager_tel;
	}
	public void  setManagerTel(String v)
	{
		if(getManagerTel().equals(v)) return ;
		m_manager_tel = v ;
		markDirty(MANAGER_TEL);
	}



	

	public String getLinkPerson()
	{
	    return m_link_person;
	}
	public void  setLinkPerson(String v)
	{
		if(getLinkPerson().equals(v)) return ;
		m_link_person = v ;
		markDirty(LINK_PERSON);
	}



	

	public String getLinkTel()
	{
	    return m_link_tel;
	}
	public void  setLinkTel(String v)
	{
		if(getLinkTel().equals(v)) return ;
		m_link_tel = v ;
		markDirty(LINK_TEL);
	}



	

	public String getCountryCode()
	{
	    return m_country_code;
	}
	public void  setCountryCode(String v)
	{
		if(getCountryCode().equals(v)) return ;
		m_country_code = v ;
		markDirty(COUNTRY_CODE);
	}



	

	public String getProvinceCode()
	{
	    return m_province_code;
	}
	public void  setProvinceCode(String v)
	{
		if(getProvinceCode().equals(v)) return ;
		m_province_code = v ;
		markDirty(PROVINCE_CODE);
	}



	

	public String getDistrictCode()
	{
	    return m_district_code;
	}
	public void  setDistrictCode(String v)
	{
		if(getDistrictCode().equals(v)) return ;
		m_district_code = v ;
		markDirty(DISTRICT_CODE);
	}



	

	public String getIndustry()
	{
	    return m_industry;
	}
	public void  setIndustry(String v)
	{
		if(getIndustry().equals(v)) return ;
		m_industry = v ;
		markDirty(INDUSTRY);
	}



	

	public String getMainRpoduct()
	{
	    return m_main_rpoduct;
	}
	public void  setMainRpoduct(String v)
	{
		if(getMainRpoduct().equals(v)) return ;
		m_main_rpoduct = v ;
		markDirty(MAIN_RPODUCT);
	}



	

	public String getScope()
	{
	    return m_scope;
	}
	public void  setScope(String v)
	{
		if(getScope().equals(v)) return ;
		m_scope = v ;
		markDirty(SCOPE);
	}



	

	public String getCreditLevel()
	{
	    return m_credit_level;
	}
	public void  setCreditLevel(String v)
	{
		if(getCreditLevel().equals(v)) return ;
		m_credit_level = v ;
		markDirty(CREDIT_LEVEL);
	}



	

	public String getIsTradeflatProvider()
	{
	    return m_is_tradeflat_provider;
	}
	public void  setIsTradeflatProvider(String v)
	{
		if(getIsTradeflatProvider().equals(v)) return ;
		m_is_tradeflat_provider = v ;
		markDirty(IS_TRADEFLAT_PROVIDER);
	}



	

	public String getStatus()
	{
	    return m_status;
	}
	public void  setStatus(String v)
	{
		if(getStatus().equals(v)) return ;
		m_status = v ;
		markDirty(STATUS);
	}



	

	public String getCreateUserId()
	{
	    return m_create_user_id;
	}
	public void  setCreateUserId(String v)
	{
		if(getCreateUserId().equals(v)) return ;
		m_create_user_id = v ;
		markDirty(CREATE_USER_ID);
	}



	

	public String getCreateUser()
	{
	    return m_create_user;
	}
	public void  setCreateUser(String v)
	{
		if(getCreateUser().equals(v)) return ;
		m_create_user = v ;
		markDirty(CREATE_USER);
	}



	

	public String getCreateTime()
	{
	    return m_create_time;
	}
	public void  setCreateTime(String v)
	{
		if(getCreateTime().equals(v)) return ;
		m_create_time = v ;
		markDirty(CREATE_TIME);
	}



	

	public String getLastUpdateUserId()
	{
	    return m_last_update_user_id;
	}
	public void  setLastUpdateUserId(String v)
	{
		if(getLastUpdateUserId().equals(v)) return ;
		m_last_update_user_id = v ;
		markDirty(LAST_UPDATE_USER_ID);
	}



	

	public String getLastUpdateUser()
	{
	    return m_last_update_user;
	}
	public void  setLastUpdateUser(String v)
	{
		if(getLastUpdateUser().equals(v)) return ;
		m_last_update_user = v ;
		markDirty(LAST_UPDATE_USER);
	}



	

	public String getLastUpdateTime()
	{
	    return m_last_update_time;
	}
	public void  setLastUpdateTime(String v)
	{
		if(getLastUpdateTime().equals(v)) return ;
		m_last_update_time = v ;
		markDirty(LAST_UPDATE_TIME);
	}



	



	public String viewId(DBConnection con) throws Exception
	{
		return Value.view(getId());
	}

	public String viewCode(DBConnection con) throws Exception
	{
		return Value.view(getCode());
	}

	public String viewName(DBConnection con) throws Exception
	{
		return Value.view(getName());
	}

	public String viewFullName(DBConnection con) throws Exception
	{
		return Value.view(getFullName());
	}

	public String viewEngName(DBConnection con) throws Exception
	{
		return Value.view(getEngName());
	}

	public String viewComProperty(DBConnection con) throws Exception
	{
		return Value.view(getComProperty());
	}

	public String viewAddress(DBConnection con) throws Exception
	{
		return Value.view(getAddress());
	}

	public String viewZipCode(DBConnection con) throws Exception
	{
		return Value.view(getZipCode());
	}

	public String viewManagePerson(DBConnection con) throws Exception
	{
		return Value.view(getManagePerson());
	}

	public String viewManagerTel(DBConnection con) throws Exception
	{
		return Value.view(getManagerTel());
	}

	public String viewLinkPerson(DBConnection con) throws Exception
	{
		return Value.view(getLinkPerson());
	}

	public String viewLinkTel(DBConnection con) throws Exception
	{
		return Value.view(getLinkTel());
	}

	public String viewCountryCode(DBConnection con) throws Exception
	{
		return Value.view(getCountryCode());
	}

	public String viewProvinceCode(DBConnection con) throws Exception
	{
		return Value.view(getProvinceCode());
	}

	public String viewDistrictCode(DBConnection con) throws Exception
	{
		return Value.view(getDistrictCode());
	}

	public String viewIndustry(DBConnection con) throws Exception
	{
		return Value.view(getIndustry());
	}

	public String viewMainRpoduct(DBConnection con) throws Exception
	{
		return Value.view(getMainRpoduct());
	}

	public String viewScope(DBConnection con) throws Exception
	{
		return Value.view(getScope());
	}

	public String viewCreditLevel(DBConnection con) throws Exception
	{
		return Value.view(getCreditLevel());
	}

	public String viewIsTradeflatProvider(DBConnection con) throws Exception
	{
		return Value.view(getIsTradeflatProvider());
	}

	public String viewStatus(DBConnection con) throws Exception
	{
		return Value.view(getStatus());
	}

	public String viewCreateUserId(DBConnection con) throws Exception
	{
		return Value.view(getCreateUserId());
	}

	public String viewCreateUser(DBConnection con) throws Exception
	{
		return Value.view(getCreateUser());
	}

	public String viewCreateTime(DBConnection con) throws Exception
	{
		return Value.view(getCreateTime());
	}

	public String viewLastUpdateUserId(DBConnection con) throws Exception
	{
		return Value.view(getLastUpdateUserId());
	}

	public String viewLastUpdateUser(DBConnection con) throws Exception
	{
		return Value.view(getLastUpdateUser());
	}

	public String viewLastUpdateTime(DBConnection con) throws Exception
	{
		return Value.view(getLastUpdateTime());
	}



protected ProviderBase()
{
}

public void fill(ProviderPageData pageData) throws Exception
{

	if(pageData.getId()!=null)
	{	
		setId(pageData.getId());
	}

	if(pageData.getCode()!=null)
	{	
		setCode(pageData.getCode());
	}

	if(pageData.getName()!=null)
	{	
		setName(pageData.getName());
	}

	if(pageData.getFullName()!=null)
	{	
		setFullName(pageData.getFullName());
	}

	if(pageData.getEngName()!=null)
	{	
		setEngName(pageData.getEngName());
	}

	if(pageData.getComProperty()!=null)
	{	
		setComProperty(pageData.getComProperty());
	}

	if(pageData.getAddress()!=null)
	{	
		setAddress(pageData.getAddress());
	}

	if(pageData.getZipCode()!=null)
	{	
		setZipCode(pageData.getZipCode());
	}

	if(pageData.getManagePerson()!=null)
	{	
		setManagePerson(pageData.getManagePerson());
	}

	if(pageData.getManagerTel()!=null)
	{	
		setManagerTel(pageData.getManagerTel());
	}

	if(pageData.getLinkPerson()!=null)
	{	
		setLinkPerson(pageData.getLinkPerson());
	}

	if(pageData.getLinkTel()!=null)
	{	
		setLinkTel(pageData.getLinkTel());
	}

	if(pageData.getCountryCode()!=null)
	{	
		setCountryCode(pageData.getCountryCode());
	}

	if(pageData.getProvinceCode()!=null)
	{	
		setProvinceCode(pageData.getProvinceCode());
	}

	if(pageData.getDistrictCode()!=null)
	{	
		setDistrictCode(pageData.getDistrictCode());
	}

	if(pageData.getIndustry()!=null)
	{	
		setIndustry(pageData.getIndustry());
	}

	if(pageData.getMainRpoduct()!=null)
	{	
		setMainRpoduct(pageData.getMainRpoduct());
	}

	if(pageData.getScope()!=null)
	{	
		setScope(pageData.getScope());
	}

	if(pageData.getCreditLevel()!=null)
	{	
		setCreditLevel(pageData.getCreditLevel());
	}

	if(pageData.getIsTradeflatProvider()!=null)
	{	
		setIsTradeflatProvider(pageData.getIsTradeflatProvider());
	}

	if(pageData.getStatus()!=null)
	{	
		setStatus(pageData.getStatus());
	}

	if(pageData.getCreateUserId()!=null)
	{	
		setCreateUserId(pageData.getCreateUserId());
	}

	if(pageData.getCreateUser()!=null)
	{	
		setCreateUser(pageData.getCreateUser());
	}

	if(pageData.getCreateTime()!=null)
	{	
		setCreateTime(pageData.getCreateTime());
	}

	if(pageData.getLastUpdateUserId()!=null)
	{	
		setLastUpdateUserId(pageData.getLastUpdateUserId());
	}

	if(pageData.getLastUpdateUser()!=null)
	{	
		setLastUpdateUser(pageData.getLastUpdateUser());
	}

	if(pageData.getLastUpdateTime()!=null)
	{	
		setLastUpdateTime(pageData.getLastUpdateTime());
	}

}

public String getTableName() 
{
	return TABLE_NAME;
}

public String getBackupTableName() 
{
	return BACKUP_TABLE_NAME;
}

public String getBackupSeqName() 
{
	return BACKUP_SEQ_NAME;
}

public java.util.Vector getFields() 
{
	if(m_fields==null)
	{
		m_fields = new Vector();

		m_fields.add(new Field(ID,Value.TYPE_STRING,false,true,32,"序号"));

		m_fields.add(new Field(CODE,Value.TYPE_STRING,true,true,10,"编码"));

		m_fields.add(new Field(NAME,Value.TYPE_STRING,false,true,50,"名称"));

		m_fields.add(new Field(FULL_NAME,Value.TYPE_STRING,false,true,100,"全称"));

		m_fields.add(new Field(ENG_NAME,Value.TYPE_STRING,false,false,100,"英文名称"));

		m_fields.add(new Field(COM_PROPERTY,Value.TYPE_STRING,false,true,50,"公司性质"));

		m_fields.add(new Field(ADDRESS,Value.TYPE_STRING,false,false,100,"经营地址"));

		m_fields.add(new Field(ZIP_CODE,Value.TYPE_STRING,false,false,20,"邮政编码"));

		m_fields.add(new Field(MANAGE_PERSON,Value.TYPE_STRING,false,false,50,"负责人"));

		m_fields.add(new Field(MANAGER_TEL,Value.TYPE_STRING,false,false,50,"负责人联系电话"));

		m_fields.add(new Field(LINK_PERSON,Value.TYPE_STRING,false,false,50,"联系人"));

		m_fields.add(new Field(LINK_TEL,Value.TYPE_STRING,false,false,50,"联系人电话"));

		m_fields.add(new Field(COUNTRY_CODE,Value.TYPE_STRING,false,true,20,"所属国家"));

		m_fields.add(new Field(PROVINCE_CODE,Value.TYPE_STRING,false,true,20,"所属省份"));

		m_fields.add(new Field(DISTRICT_CODE,Value.TYPE_STRING,false,true,20,"所属地区"));

		m_fields.add(new Field(INDUSTRY,Value.TYPE_STRING,false,false,500,"主营行业"));

		m_fields.add(new Field(MAIN_RPODUCT,Value.TYPE_STRING,false,false,500,"主营产品"));

		m_fields.add(new Field(SCOPE,Value.TYPE_STRING,false,false,2000,"经营范围"));

		m_fields.add(new Field(CREDIT_LEVEL,Value.TYPE_STRING,false,false,50,"信誉等级"));

		m_fields.add(new Field(IS_TRADEFLAT_PROVIDER,Value.TYPE_STRING,false,true,1,"是否交易平台的供应商"));

		m_fields.add(new Field(STATUS,Value.TYPE_STRING,false,true,1,"是否有效"));

		m_fields.add(new Field(CREATE_USER_ID,Value.TYPE_STRING,false,true,32,"创建人序号"));

		m_fields.add(new Field(CREATE_USER,Value.TYPE_STRING,false,true,50,"创建人"));

		m_fields.add(new Field(CREATE_TIME,Value.TYPE_STRING,false,true,20,"创建时间"));

		m_fields.add(new Field(LAST_UPDATE_USER_ID,Value.TYPE_STRING,false,true,32,"最后修改人序号"));

		m_fields.add(new Field(LAST_UPDATE_USER,Value.TYPE_STRING,false,true,50,"最后修改人"));

		m_fields.add(new Field(LAST_UPDATE_TIME,Value.TYPE_STRING,false,true,20,"最后修改时间"));
		
	}
	return m_fields;
}

public void initObject(java.sql.ResultSet rs) throws Exception
{

	m_id = getString(rs,ID);

	m_code = getString(rs,CODE);

	m_name = getString(rs,NAME);

	m_full_name = getString(rs,FULL_NAME);

	m_eng_name = getString(rs,ENG_NAME);

	m_com_property = getString(rs,COM_PROPERTY);

	m_address = getString(rs,ADDRESS);

	m_zip_code = getString(rs,ZIP_CODE);

	m_manage_person = getString(rs,MANAGE_PERSON);

	m_manager_tel = getString(rs,MANAGER_TEL);

	m_link_person = getString(rs,LINK_PERSON);

	m_link_tel = getString(rs,LINK_TEL);

	m_country_code = getString(rs,COUNTRY_CODE);

	m_province_code = getString(rs,PROVINCE_CODE);

	m_district_code = getString(rs,DISTRICT_CODE);

	m_industry = getString(rs,INDUSTRY);

	m_main_rpoduct = getString(rs,MAIN_RPODUCT);

	m_scope = getString(rs,SCOPE);

	m_credit_level = getString(rs,CREDIT_LEVEL);

	m_is_tradeflat_provider = getString(rs,IS_TRADEFLAT_PROVIDER);

	m_status = getString(rs,STATUS);

	m_create_user_id = getString(rs,CREATE_USER_ID);

	m_create_user = getString(rs,CREATE_USER);

	m_create_time = getString(rs,CREATE_TIME);

	m_last_update_user_id = getString(rs,LAST_UPDATE_USER_ID);

	m_last_update_user = getString(rs,LAST_UPDATE_USER);

	m_last_update_time = getString(rs,LAST_UPDATE_TIME);

	ms_new_flag = ConstDefine.NO;
}

public Value get(String f)
{

	if(f.equalsIgnoreCase(ID))
	{
		return new Value(getId());
	}

	if(f.equalsIgnoreCase(CODE))
	{
		return new Value(getCode());
	}

	if(f.equalsIgnoreCase(NAME))
	{
		return new Value(getName());
	}

	if(f.equalsIgnoreCase(FULL_NAME))
	{
		return new Value(getFullName());
	}

	if(f.equalsIgnoreCase(ENG_NAME))
	{
		return new Value(getEngName());
	}

	if(f.equalsIgnoreCase(COM_PROPERTY))
	{
		return new Value(getComProperty());
	}

	if(f.equalsIgnoreCase(ADDRESS))
	{
		return new Value(getAddress());
	}

	if(f.equalsIgnoreCase(ZIP_CODE))
	{
		return new Value(getZipCode());
	}

	if(f.equalsIgnoreCase(MANAGE_PERSON))
	{
		return new Value(getManagePerson());
	}

	if(f.equalsIgnoreCase(MANAGER_TEL))
	{
		return new Value(getManagerTel());
	}

	if(f.equalsIgnoreCase(LINK_PERSON))
	{
		return new Value(getLinkPerson());
	}

	if(f.equalsIgnoreCase(LINK_TEL))
	{
		return new Value(getLinkTel());
	}

	if(f.equalsIgnoreCase(COUNTRY_CODE))
	{
		return new Value(getCountryCode());
	}

	if(f.equalsIgnoreCase(PROVINCE_CODE))
	{
		return new Value(getProvinceCode());
	}

	if(f.equalsIgnoreCase(DISTRICT_CODE))
	{
		return new Value(getDistrictCode());
	}

	if(f.equalsIgnoreCase(INDUSTRY))
	{
		return new Value(getIndustry());
	}

	if(f.equalsIgnoreCase(MAIN_RPODUCT))
	{
		return new Value(getMainRpoduct());
	}

	if(f.equalsIgnoreCase(SCOPE))
	{
		return new Value(getScope());
	}

	if(f.equalsIgnoreCase(CREDIT_LEVEL))
	{
		return new Value(getCreditLevel());
	}

	if(f.equalsIgnoreCase(IS_TRADEFLAT_PROVIDER))
	{
		return new Value(getIsTradeflatProvider());
	}

	if(f.equalsIgnoreCase(STATUS))
	{
		return new Value(getStatus());
	}

	if(f.equalsIgnoreCase(CREATE_USER_ID))
	{
		return new Value(getCreateUserId());
	}

	if(f.equalsIgnoreCase(CREATE_USER))
	{
		return new Value(getCreateUser());
	}

	if(f.equalsIgnoreCase(CREATE_TIME))
	{
		return new Value(getCreateTime());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER_ID))
	{
		return new Value(getLastUpdateUserId());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER))
	{
		return new Value(getLastUpdateUser());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_TIME))
	{
		return new Value(getLastUpdateTime());
	}
	
	return null;
}
public void set(String f,Value v) throws Exception
{

	if(f.equalsIgnoreCase(ID))
	{
		setId(v.getString());
	}

	if(f.equalsIgnoreCase(CODE))
	{
		setCode(v.getString());
	}

	if(f.equalsIgnoreCase(NAME))
	{
		setName(v.getString());
	}

	if(f.equalsIgnoreCase(FULL_NAME))
	{
		setFullName(v.getString());
	}

	if(f.equalsIgnoreCase(ENG_NAME))
	{
		setEngName(v.getString());
	}

	if(f.equalsIgnoreCase(COM_PROPERTY))
	{
		setComProperty(v.getString());
	}

	if(f.equalsIgnoreCase(ADDRESS))
	{
		setAddress(v.getString());
	}

	if(f.equalsIgnoreCase(ZIP_CODE))
	{
		setZipCode(v.getString());
	}

	if(f.equalsIgnoreCase(MANAGE_PERSON))
	{
		setManagePerson(v.getString());
	}

	if(f.equalsIgnoreCase(MANAGER_TEL))
	{
		setManagerTel(v.getString());
	}

	if(f.equalsIgnoreCase(LINK_PERSON))
	{
		setLinkPerson(v.getString());
	}

	if(f.equalsIgnoreCase(LINK_TEL))
	{
		setLinkTel(v.getString());
	}

	if(f.equalsIgnoreCase(COUNTRY_CODE))
	{
		setCountryCode(v.getString());
	}

	if(f.equalsIgnoreCase(PROVINCE_CODE))
	{
		setProvinceCode(v.getString());
	}

	if(f.equalsIgnoreCase(DISTRICT_CODE))
	{
		setDistrictCode(v.getString());
	}

	if(f.equalsIgnoreCase(INDUSTRY))
	{
		setIndustry(v.getString());
	}

	if(f.equalsIgnoreCase(MAIN_RPODUCT))
	{
		setMainRpoduct(v.getString());
	}

	if(f.equalsIgnoreCase(SCOPE))
	{
		setScope(v.getString());
	}

	if(f.equalsIgnoreCase(CREDIT_LEVEL))
	{
		setCreditLevel(v.getString());
	}

	if(f.equalsIgnoreCase(IS_TRADEFLAT_PROVIDER))
	{
		setIsTradeflatProvider(v.getString());
	}

	if(f.equalsIgnoreCase(STATUS))
	{
		setStatus(v.getString());
	}

	if(f.equalsIgnoreCase(CREATE_USER_ID))
	{
		setCreateUserId(v.getString());
	}

	if(f.equalsIgnoreCase(CREATE_USER))
	{
		setCreateUser(v.getString());
	}

	if(f.equalsIgnoreCase(CREATE_TIME))
	{
		setCreateTime(v.getString());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER_ID))
	{
		setLastUpdateUserId(v.getString());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER))
	{
		setLastUpdateUser(v.getString());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_TIME))
	{
		setLastUpdateTime(v.getString());
	}
	
}
public String toString()
{
	String msg = "Provider=\n";
	msg += "(\r\n";

	msg += "    序号(id)="+get("id")+"\r\n";

	msg += "    编码(code)="+get("code")+"\r\n";

	msg += "    名称(name)="+get("name")+"\r\n";

	msg += "    全称(full_name)="+get("full_name")+"\r\n";

	msg += "    英文名称(eng_name)="+get("eng_name")+"\r\n";

	msg += "    公司性质(com_property)="+get("com_property")+"\r\n";

	msg += "    经营地址(address)="+get("address")+"\r\n";

	msg += "    邮政编码(zip_code)="+get("zip_code")+"\r\n";

	msg += "    负责人(manage_person)="+get("manage_person")+"\r\n";

	msg += "    负责人联系电话(manager_tel)="+get("manager_tel")+"\r\n";

	msg += "    联系人(link_person)="+get("link_person")+"\r\n";

	msg += "    联系人电话(link_tel)="+get("link_tel")+"\r\n";

	msg += "    所属国家(country_code)="+get("country_code")+"\r\n";

	msg += "    所属省份(province_code)="+get("province_code")+"\r\n";

	msg += "    所属地区(district_code)="+get("district_code")+"\r\n";

	msg += "    主营行业(industry)="+get("industry")+"\r\n";

	msg += "    主营产品(main_rpoduct)="+get("main_rpoduct")+"\r\n";

	msg += "    经营范围(scope)="+get("scope")+"\r\n";

	msg += "    信誉等级(credit_level)="+get("credit_level")+"\r\n";

	msg += "    是否交易平台的供应商(is_tradeflat_provider)="+get("is_tradeflat_provider")+"\r\n";

	msg += "    是否有效(status)="+get("status")+"\r\n";

	msg += "    创建人序号(create_user_id)="+get("create_user_id")+"\r\n";

	msg += "    创建人(create_user)="+get("create_user")+"\r\n";

	msg += "    创建时间(create_time)="+get("create_time")+"\r\n";

	msg += "    最后修改人序号(last_update_user_id)="+get("last_update_user_id")+"\r\n";

	msg += "    最后修改人(last_update_user)="+get("last_update_user")+"\r\n";

	msg += "    最后修改时间(last_update_time)="+get("last_update_time")+"\r\n";
		
	msg += ")\r\n";
	return msg;
}
public void copyBase(ProviderBase srcObj)
{

	setId(srcObj.getId());

	setName(srcObj.getName());

	setFullName(srcObj.getFullName());

	setEngName(srcObj.getEngName());

	setComProperty(srcObj.getComProperty());

	setAddress(srcObj.getAddress());

	setZipCode(srcObj.getZipCode());

	setManagePerson(srcObj.getManagePerson());

	setManagerTel(srcObj.getManagerTel());

	setLinkPerson(srcObj.getLinkPerson());

	setLinkTel(srcObj.getLinkTel());

	setCountryCode(srcObj.getCountryCode());

	setProvinceCode(srcObj.getProvinceCode());

	setDistrictCode(srcObj.getDistrictCode());

	setIndustry(srcObj.getIndustry());

	setMainRpoduct(srcObj.getMainRpoduct());

	setScope(srcObj.getScope());

	setCreditLevel(srcObj.getCreditLevel());

	setIsTradeflatProvider(srcObj.getIsTradeflatProvider());

	setStatus(srcObj.getStatus());

	setCreateUserId(srcObj.getCreateUserId());

	setCreateUser(srcObj.getCreateUser());

	setCreateTime(srcObj.getCreateTime());

	setLastUpdateUserId(srcObj.getLastUpdateUserId());

	setLastUpdateUser(srcObj.getLastUpdateUser());

	setLastUpdateTime(srcObj.getLastUpdateTime());

}

public String toXml() throws Exception
{
	String xml = "";
	xml += "<Provider>";

	xml += "<Id>"+Value.view(getId())+"</Id>";

	xml += "<Code>"+Value.view(getCode())+"</Code>";

	xml += "<Name>"+Value.view(getName())+"</Name>";

	xml += "<FullName>"+Value.view(getFullName())+"</FullName>";

	xml += "<EngName>"+Value.view(getEngName())+"</EngName>";

	xml += "<ComProperty>"+Value.view(getComProperty())+"</ComProperty>";

	xml += "<Address>"+Value.view(getAddress())+"</Address>";

	xml += "<ZipCode>"+Value.view(getZipCode())+"</ZipCode>";

	xml += "<ManagePerson>"+Value.view(getManagePerson())+"</ManagePerson>";

	xml += "<ManagerTel>"+Value.view(getManagerTel())+"</ManagerTel>";

	xml += "<LinkPerson>"+Value.view(getLinkPerson())+"</LinkPerson>";

	xml += "<LinkTel>"+Value.view(getLinkTel())+"</LinkTel>";

	xml += "<CountryCode>"+Value.view(getCountryCode())+"</CountryCode>";

	xml += "<ProvinceCode>"+Value.view(getProvinceCode())+"</ProvinceCode>";

	xml += "<DistrictCode>"+Value.view(getDistrictCode())+"</DistrictCode>";

	xml += "<Industry>"+Value.view(getIndustry())+"</Industry>";

	xml += "<MainRpoduct>"+Value.view(getMainRpoduct())+"</MainRpoduct>";

	xml += "<Scope>"+Value.view(getScope())+"</Scope>";

	xml += "<CreditLevel>"+Value.view(getCreditLevel())+"</CreditLevel>";

	xml += "<IsTradeflatProvider>"+Value.view(getIsTradeflatProvider())+"</IsTradeflatProvider>";

	xml += "<Status>"+Value.view(getStatus())+"</Status>";

	xml += "<CreateUserId>"+Value.view(getCreateUserId())+"</CreateUserId>";

	xml += "<CreateUser>"+Value.view(getCreateUser())+"</CreateUser>";

	xml += "<CreateTime>"+Value.view(getCreateTime())+"</CreateTime>";

	xml += "<LastUpdateUserId>"+Value.view(getLastUpdateUserId())+"</LastUpdateUserId>";

	xml += "<LastUpdateUser>"+Value.view(getLastUpdateUser())+"</LastUpdateUser>";

	xml += "<LastUpdateTime>"+Value.view(getLastUpdateTime())+"</LastUpdateTime>";
	
	xml += "</Provider>";
	return xml;
}

}
